package com.shop.feign;

import com.shop.feign.impl.CouponFeignImpl;
import com.shop.to.SkuByReductionTo;
import com.shop.to.SpuByBoundsTo;
import com.shop.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "website-coupon-4001",fallback = CouponFeignImpl.class)
public interface CouponFeign {

    @PostMapping("/bounds/saveBoundsBySpu")
    public R saveBoundsBySpu(@RequestBody SpuByBoundsTo spuByBoundsTo);//调用远程spu设置积分服务
    @PostMapping("skufull/reduction/addReductionBySKU")
    public R addReduction(@RequestBody SkuByReductionTo skuByReductionTo);//远程调用sku优惠


}
